package controllers

import (
	"lottery/models"
)

type TearmDictCtl struct {
	BaseCtl
}

func (t *TearmDictCtl) GetTearmList() {
	if !t.isLogin() {
		t.SetJson("请先登录", nil)
		return
	}
	tearms, err := models.GetTearmList()

	if err != nil {
		t.SetJson(nil, err)
		return
	}
	t.SetJson(tearms, nil)
	return
}
